package fr.afcepf.iziticket.services;

import fr.afcepf.iziticket.beans.MainManagedBean;
import fr.afcepf.iziticket.dao.interfaces.DAOCommande;
import fr.afcepf.iziticket.entities.Commande;

public class DetailCommandeService {

	private static DetailCommandeService service;
	
	public static DetailCommandeService getService(){
		if(service==null)
			service = new DetailCommandeService();
		return service;
	}
	
	private DetailCommandeService() {
	}
	
	public Commande voirDetail(int idCommande){
		
		DAOCommande daoC = (DAOCommande)MainManagedBean.getContext().getBean("daoCommande");
		return daoC.get(idCommande);
	}
}
